// stores/counter.js
import {defineStore} from "pinia";

export const useThemeStore = defineStore({
    id: "theme",
    state: () => ({
        // store to local

        theme: 'light',
    }),
    actions: {
        setTheme(mode) {
            this.theme = mode;
            console.log(this.theme)
        },
    },
});